<template>
  <BvView>
    <BvHeader :center-control="{
      title:`登录`
    }"></BvHeader>
    <div class="bz-flex bz-flex-ai-c">
      <div class="bz-flex-1">账号</div>
      <div class="bz-flex-3"><input type="text" oninput="if(value.length > 12)value = value.slice(0, 12)" placeholder="账号"></div>
    </div>
    <div class="bz-flex bz-flex-ai-c">
      <div class="bz-flex-1">密码</div>
      <div class="bz-flex-3"><input type="password" placeholder="密码"></div>
    </div>
    <router-link to="/forget-password">忘记密码</router-link>
    <button @click="login">登录</button>
  </BvView>
</template>

<script>
  export default {
    name: "login",
    methods: {
      login(){
        localStorage.setItem('token', 'asdasdasd');
        this.$router.push({path:'/'});
        this.$toast("登录成功");
      }
    }
  }
</script>

<style scoped>

</style>
